package com.xuedian.xuanxuan.web.service;


import com.xuedian.xuanxuan.core.generic.GenericService;
import com.xuedian.xuanxuan.web.model.Token;

public interface TokenService extends GenericService<Token, Long> {

    /**
     * 根据token查询用户
     * 
     * @param token
     * @return
     */
    Token selectByToken(String token);

    /**
     * 根据userId查询用户
     *
     * @param userId
     * @return
     */
    Token selectByUserId(Long userId);
}
